﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace Cloudix.Common
{
    public class CloudixAreaRegistration : AreaRegistration
    {
        public override string AreaName
        {
            get
            {
                return "Cloudix";
            }
        }

        public override void RegisterArea(AreaRegistrationContext context)
        {

            Console.WriteLine("here we goooo!!");
            /*
            context.MapRoute(
                "CloudixRoute",
                "Cloudix/{controller}/{action}/{id}",
                new { controller = "Content", action = "Index", id = UrlParameter.Optional }
            );
            */

            /*
            context.MapRoute(
                "Cloudix_default",
                "Cloudix/{controller}/{action}/{id}",
                new { action = "Index", id = UrlParameter.Optional }
            );
            */

            context.MapRoute(
                "Cloudix_default",
                "Cloudix/{controller}/{action}/{id}",
                new { controller = "", action = "", id = "" }
            );

        }

    }
}
